import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-07-31
 * Time: 17:28
 */
public class Test1_0731 {
    public static void main(String[] args) {
/*        int a = 10;
        char b = 'b';
        double c = 5;
        float d = 1.5f;
        byte e = 10;
        System.out.println("为改变前 " + a);
        a = 20;
        System.out.println("改变后 " + a);
        char f='A';
        char h='哈';*/
        /*
        boolean a=true;
        System.out.println(a);
        boolean b=false;
        System.out.println(b);*/

/*        int a = 100;
        long b = 10L;
        b=a; //编译器会自动将 a 提升为long类型的数据，然后在赋值*/

/*        int a=100;
        long b=10L;

        b = a;//隐式类型转换

        a = (int) b; //无法直接转换*/

/*        int a = 10;
        float b = 5.0f;
        a = (int) b;
        System.out.println(a);*/

/*        short a = 128;
        byte b = (byte) a;

        System.out.println(a);
        System.out.println(b);*/

/*        int a = 100;
        long b = 10;
        b = a;  // a数据类型小,赋值给b时，编译器自动将a转换为long类型

        int c = a + b;

        long d = a + b;*/

        byte a = 20;
        byte b = 10;
        //byte c = a + b;


        int [] array1={1,2,3,4,5,6};
        int [] array2=new int [array1.length];
        System.arraycopy(array1,0,array2,0,array1.length);
        System.out.println(Arrays.toString(array2));

    }
}
